{
	name:"CircleOuter",
	importCommand:[{
		key:"Tool",
		path:"./paint_tool/circles/circle.shape"
	}],
	onFocusIn(){
		this.toast({text:"请点击正多边形边框",timeOut:3000})
		this.ctrlIndex = 2
	},
	onClick(pos,e,meta){
		let poly = this.queryPolys(pos)
		if(poly){
			let steps = poly.step
			this.step.push(steps[0])
			this.step.push(steps[1])
			this.commit(Action.Circle,this.name)
		}else
			this.toast("请点击正多边形边框")
	},
	getCircleMeta(stepData){
		let step = stepData.step
		let cp = step[0]
		let r = Math.distance(cp,step[1])
		return {x:cp.x,y:cp.y,r}
	}
}